import java.io.*;
import java.io.Console;

public class quiz
{
  public static String highscore1string = "";
  public static String highscore2string = "";
  public static String highscore3string = "";
  public static String highscore1int = "";
  public static String highscore2int = "";
  public static String highscore3int = "";
  public String frageauslesen(int x)throws IOException
  {
    int i = 0;
    String zeile = "";
    FileReader fragenfile;
    BufferedReader fragenbuffer;
    
    
    fragenfile = new FileReader("fragen.txt");
    fragenbuffer = new BufferedReader(fragenfile);
    while( (zeile = fragenbuffer.readLine()) != null )
    {
      i++;  
      if(i == x)
      {
        break;
      }
    }
    
    return zeile;
  }
  
  
  public int zufallszahl()
  {
    int zufallszahl = 0;
    
    zufallszahl = (int) (Math.random()*10+1);
    
    return zufallszahl;
  }
  
  public void highscoreauslesen()throws IOException
  {
    String zeile = "";
    String[] highscoreauslesen = {"","","","",};
    int i = 0;
    FileReader highscorefile;
    BufferedReader highscorebuffer;
    
    highscorefile = new FileReader("highscore.txt");
    highscorebuffer = new BufferedReader(highscorefile);
    while( (zeile = highscorebuffer.readLine()) != null )
    {
      if (i == 0) 
      {
        highscore1string = "";
        highscore1int = "";
        highscoreauslesen = zeile.split(" ");
        highscore1string = highscoreauslesen[0];
        highscore1int = highscoreauslesen[1];
        
        
      }
      if (i == 1) 
      {
        highscore2string = "";
        highscore2int = "";
        highscoreauslesen = zeile.split(" ");
        highscore2string = highscoreauslesen[0];
        highscore2int = highscoreauslesen[1];
      }
      
      if (i == 2) 
      {
        highscore3string = "";
        highscore3int = "";
        highscoreauslesen = zeile.split(" ");
        highscore3string = highscoreauslesen[0];
        highscore3int = highscoreauslesen[1];
      }
      i++;
      
    }
    highscorebuffer.close();
    i = 0; 
  }
}
